// pm2的egg应用启动文件
import egg = require('egg');
import os = require('os');

const workers = Number(process.argv[2] || os.cpus().length);
egg.startCluster({
  workers,
  baseDir: __dirname,
}, () => {
  console.log('egg服务器开启！');
});
